package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.Grade;
import com.xmy.cultivate.entity.Student;
import com.xmy.cultivate.entity.StudentGradeTemporary;
import com.xmy.cultivate.mapper.StudentGradeTemporaryMapper;
import com.xmy.cultivate.service.IStudentGradeTemporaryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 临时学员，补课学员 服务实现类
 * </p>
 *
 * @author min
 * @since 2022-09-22
 */
@Service
public class StudentGradeTemporaryServiceImpl extends ServiceImpl<StudentGradeTemporaryMapper, StudentGradeTemporary> implements IStudentGradeTemporaryService {
    @Autowired
    StudentGradeTemporaryMapper studentGradeTemporaryMapper;

    /**
     * 获取临时学员列表
     */
    @Override
    public IPage<StudentGradeTemporary> selectStudentGradeTemporaryPage(IPage<StudentGradeTemporary> page, Wrapper wrapper) {
        return studentGradeTemporaryMapper.selectStudentGradeTemporaryPage(page, wrapper);
    }

    /**
     * 获取可选班级列表
     */
    @Override
    public List<Grade> selectGradeList(Wrapper wrapper) {
        return studentGradeTemporaryMapper.selectGradeList(wrapper);
    }

    /**
     * 获取可选学员列表
     */
    @Override
    public IPage<Student> selectStudentList(IPage<Student> page, Wrapper wrapper) {
        return studentGradeTemporaryMapper.selectStudentList(page, wrapper);
    }
}
